package com.yuma.cloud.order.feign.callback;

import com.yuma.cloud.order.feign.UserFeignClient;
import com.yuma.cloud.user.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;

@Component
public class UserFeignClientFallBack implements UserFeignClient {
    @Override
    public User findUserByUserId(Long userId) {
        User user = new User();
        user.setId(Long.valueOf("100"));
        user.setName("default User");
        user.setAddress("default address");
        return user;
    }
}
